package com.aps.entity.domain.dish;

import java.math.BigDecimal;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;

import com.aps.entity.eunm.SpecUnit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liaoguangan
 * @description <菜品规格>
 * @date 2018/4/1 14:58
 */

@Table(name = "aps_dish_spec")
@Entity
@Data
@ApiModel
public class DishSpec extends BaseEntity {

    @Column
    @ApiModelProperty("规格代码")
    private String code;

    @Column
    @ApiModelProperty("长")
    private BigDecimal length;

    @Column
    @ApiModelProperty("宽")
    private BigDecimal width;

    @Column
    @ApiModelProperty("容积")
    private BigDecimal volume;

    @Column
    @ApiModelProperty("长宽规格单位")
    @Enumerated(EnumType.STRING)
    private SpecUnit sizeUnit;

    @Column
    @ApiModelProperty("容积规格单位")
    @Enumerated(EnumType.STRING)
    private SpecUnit volumeUnit;
}
